Skip to content

Conversation

@erikvansebille
Copy link
Member

This PR builds on #2455, when we realised that we don't actually rely on UnitConverters for the VectorField interpolation. That means that we don't need UnitConverters at all. And since they were a bit of a beast to work with, this PR removes them altogether 🥳

The only downside, as far as I can see, is that sampling fieldset.U or fieldset.V separately (so not as fieldset.UV) leads to velocities that are not converted from m/s to degrees/s, so can't be used inside kernels (unless users do the conversion themselves)

Base automatically changed from unitconversion_for_cgridvelocity to fieldset_from_nemo January 12, 2026 13:17
@VeckoTheGecko
Copy link
Contributor

I think this makes sense. Also what you mentioned @erikvansebille about having velocity handle the unit conversion of velocities to be relative to the grid

@erikvansebille erikvansebille merged commit b49404e into fieldset_from_nemo Jan 12, 2026
11 checks passed
@erikvansebille erikvansebille deleted the removing_unitconverters branch January 12, 2026 13:30
@github-project-automation github-project-automation bot moved this from Backlog to Done in Parcels development Jan 12, 2026
@erikvansebille erikvansebille restored the removing_unitconverters branch January 12, 2026 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants